/**
 * 销售区域管理
 */
import request from '@/utils/request'

/**
 * 销售区域列表
 * @param {*} params 
 * @returns 
 */
export function salesRegionList(params = {}) {
  return request({
    url: '/basic/data/sales/region/list',
    method: 'get',
    params: params
  })
}

/**
 * 销售区域新增
 * @param {*} params 
 */
export function addSalesRegion(params = {}) {
  return request({
    url: '/basic/data/sales/region/add',
    method: 'post',
    data: params
  })
}

/**
 * 销售区域修改
 * @param {*} params 
 */
export function updateSalesRegion(params = {}) {
  return request({
    url: '/basic/data/sales/region/update',
    method: 'post',
    data: params
  })
}

/**
 * 销售区域重复校验
 * @param {*} params 
 */
export function salesRegionCheckRepeat(params = {}) {
  return request({
    url: '/basic/data/sales/region/checkRepeat',
    method: 'post',
    data: params
  })
}

/**
 * 销售区域变更记录（basic-data:sales-region:history）
 * @param {*} params 
 * @returns 
 */
export function salesRegionListHistory(params = {}) {
  return request({
    url: '/basic/data/sales/region/history',
    method: 'get',
    params: params
  })
}